/**
 * build_project
 * <p>
 * Copyright 2014 cayden.cn, Inc. All rights reserved.
 *
 * @author Administrator
 * @date 2021-09-26 15:08
 */
package com.cayden.config.boot;

import org.springframework.context.EnvironmentAware;
import org.springframework.core.env.Environment;

/**
 *
 * @author cayden
 * @date 2021-09-26 15:08
 */
public class EnvironmentContextHolder implements EnvironmentAware {

    public static Environment EVN;

    @Override
    public void setEnvironment(Environment environment) {
        if (EVN == null){
            setEN(environment);
        }
    }


    public static Environment getEVN() {
        return EVN;
    }

    public static void setEN(Environment EN) {
        EVN = EN;
    }
}
